from django.contrib import admin

# Register your models here.
from .models import Users, Addr,  VerifyCode


@admin.register(Users)
class UserAdmin(admin.ModelAdmin):
    list_display = ['id', 'username', 'phone_number', 'email', 'last_name', 'is_superuser']


@admin.register(Addr)
class AddrAdmin(admin.ModelAdmin):
    list_display = ['id', 'user', 're_phone', 're_name', 'province', 'city', 'district', 'address_detail', 'is_default']




@admin.register(VerifyCode)
class VerifCodeAdmin(admin.ModelAdmin):
    list_display = ['code', 'create_time']